﻿using System;
using System.Collections.Generic;
using RentalSystem.Data.EF.Core;

namespace RentalSystem.Data.EF.Dao
{
    public class EFCustomerTypesDao : ICustomerTypesDao
    {
        #region Queries

        private static readonly string GetQuery;

        #endregion

        private EFManager<CustomerTypes> manager;

        public EFCustomerTypesDao(RentalDatabaseEntities repository)
        {
            this.manager = new EFManager<CustomerTypes>(repository);
        }

        #region IDao1Key

        public CustomerTypes Add(CustomerTypes entity)
        {
            manager.Database.AddToCustomerTypes(entity);
            manager.Save();
            return entity;
        }

        public CustomerTypes Get(int id)
        {
            throw new NotImplementedException();
        }

        public void Delete(int id)
        {
            throw new NotImplementedException();
        }

        public void Delete(CustomerTypes entity)
        {
            throw new NotImplementedException();
        }

        public void Update(CustomerTypes entity, uint fields)
        {
            throw new NotImplementedException();
        }

        public List<CustomerTypes> List()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
